﻿using System;
using System.Linq;
using Biz.EF.Platform;

namespace Biz.Process
{
    public class SumSettings
    {
        public static DateTime? GetStartSumTime(int enterpriseId, int portId)
        {
            using (var pCtx = new PlatformContext())
            {
                var item = pCtx.统计设置.Where(t => t.企业基本信息ID == enterpriseId).FirstOrDefault(t => t.设备信息ID == portId);
                return item?.时间;
            }
        }
    }
}
